<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>我的店铺</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" href="/css/modules.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="/css/modules1.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="/css/jquery-ui.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="/css/jquery.wysiwyg.css" type="text/css"
			media="screen" />
		<style type="text/css">
label {
	display: inline;
}

.input-medium {
	width: 180px;
}

h4 {
	color: #999;
	font-size: 14px;
	padding: 10px;
	font-style: italic;
}
#editOutletsInfo{
	display:none;
}
</style>
		<script type='text/javascript' src="/js/jquery-1.4.2.min.js"></script>
		<script type='text/javascript' src="/js/jquery.js"></script>
		<script type='text/javascript' src="/js/jquery-ui.js"></script>
		<script type='text/javascript' src="/js/jquery.wysiwyg.js"></script>
		<script type='text/javascript' src="/js/custom.js"></script>
		<script type="text/javascript">
			
			function edit_outletsInfo(){
				var dialogOption={height: 450,width:800,modal:true,position: [50,50]};
				 jQuery("#editOutletsInfo").dialog(dialogOption);
				 jQuery("#editOutletsInfo").dialog("open");
			}
			
			function closeDialog(){
				 jQuery("#editOutletsInfo").dialog("close");
			}
		
		</script>
	</head>

	<body style="background-color: transparent">
		<!-- 	我的店铺		-->
		<div style="padding: 10px;">
			<h2 class="jquery_tab_title">
				我的店铺
			</h2>
		</div>
		<!--  Goods_list  -->
		<div>
			<h4>
				--- * 基本资料 -----------------------------
			</h4>
			<table id="noborder_table" cellspacing="0" cellpadding="0"
				width="100%">
				<tr>
					<td>
						店铺名称:
					</td>
					<td>
						${session.outlets.name }
					</td>
				</tr>
				<tr>
					<td>
						店铺地址:
					</td>
					<td>
						${session.outlets.province.fullAddress }${session.outlets.address }
					</td>
				</tr>
				<tr>
					<td>
						传真:
					</td>
					<td>
						${session.outlets.fax }
					</td>
				</tr>
				<tr>
					<td>
						店长:
					</td>
					<td>
						${session.outlets.manager.realname }
					</td>
				</tr>
				<tr>
					<td>
						联系电话:
					</td>
					<td>
						${session.outlets.telphone }&nbsp;&nbsp;&nbsp;&nbsp;
						${session.outlets.back_telphone }&nbsp;&nbsp;&nbsp;&nbsp;
						${session.outlets.back_tel2 }
					</td>
				</tr>
				<tr>
					<td>
						电子邮件:
					</td>
					<td>
						${session.outlets.email }
					</td>
				</tr>
				<tr>
					<td>
						网址:
					</td>
					<td>
						<a herf="${session.outlets.site }" style="cursor:pointer;color:blue">${session.outlets.site }</a>
					</td>
				</tr>
				<tr>
					<td>
						QQ:
					</td>
					<td>
						${session.outlets.qq }
					</td>
				</tr>
				<tr>
					<td>
						创建时间:
					</td>
					<td>
						${session.outlets.date }
					</td>
				</tr>
			</table>
			<input type="button" value="修改店铺基本信息" class="button" onclick="edit_outletsInfo();" />
		</div>
		
		<div id="editOutletsInfo" title="店铺基本信息修改">
			<form action="/OutletsAction!modify.action" method="post">
				<table id="noborder_table" cellspacing="0" cellpadding="0"
				width="100%">
				<tr>
					<td>
						店铺名称:
					</td>
					<td>
						${session.outlets.name }
					</td>
				</tr>
				<tr>
					<td>
						店铺地址:
					</td>
					<td>
						${session.outlets.province.fullAddress }<input type="text" name="address" class="input-medium" value="${session.outlets.address }" />
					</td>
				</tr>
				<tr>
					<td>
						联系电话:
					</td>
					<td>
						<input type="text" name="telphone" class="input-medium" value="${session.outlets.telphone }" />
						备用电话1:<input type="text" name="telphone" class="input-medium" value="${session.outlets.back_telphone }" />
						备用电话2:<input type="text" name="telphone" class="input-medium" value="${session.outlets.back_tel2 }" />
					</td>
				</tr>
				<tr>
					<td>
						传真:
					</td>
					<td>
						<input type="text" name="fax" class="input-medium" value="${session.outlets.fax }" />
					</td>
				</tr>
				<tr>
					<td>
						店长:
					</td>
					<td>
						${session.outlets.manager.realname }
					</td>
				</tr>
				<tr>
					<td>
						电子邮件:
					</td>
					<td>
						<input type="text" name="telphone" class="input-medium" value="${session.outlets.email }" />
					</td>
				</tr>
				<tr>
					<td>
						网址:
					</td>
					<td>
						<input type="text" name="telphone" class="input-medium" value="${session.outlets.site }" />
						
					</td>
				</tr>
				<tr>
					<td>
						QQ:
					</td>
					<td>
						<input type="text" name="telphone" class="input-medium" value="${session.outlets.qq }" />
					</td>
				</tr>
				<tr>
					<td>
						创建时间:
					</td>
					<td>
						<s:date name="#session.outlets.date" format="yyyy-MM-dd HH:mm" />
					</td>
				</tr>
				<tr>
					<td>
						&nbsp;
					</td>
					<td>
						<input type="submit" value="确定" class="button" />
						<input type="button" value="取消" class="button" onclick="closeDialog();"/>
					</td>
				</tr>
			</table>
			</form>
				
		</div>
	</body>
</html>